<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title?></title>
<?php echo $header;?>
<script>
$(document).ready(function(){
	$('#b_upload').click(function(){
		$.dialog.open('<?php echo base_url('upload/show/image/picturepath');?>',{title:'<?php echo lang('com_title_upload_image');?>',width:400,height:100,lock:true});
	});
});
</script>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="table_top_left" width="17" valign="top"></td>
		<td class="table_top_middle" valign="top"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
				<tr>
					<td height="31" align="left"><div class="titlebt"><?php echo $page_label?></div></td>
				</tr>
			</table></td>
		<td class="table_top_right" width="16" valign="top"></td>
	</tr>
	<tr>
		<td class="table_left_side" height="71" valign="middle"></td>
		<td valign="top" bgcolor="#F7F8F9"><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
							<tr>
								<td align="left" class="left_txt"><?php echo $nav_label,$title?></td>
							</tr>
							<tr>
								<td ><form id="f_news" name="f_news" method="post" action="<?php echo base_url('news/edit_action') . $redirect;?>">
										<table width="100%" class="list" cellpadding="0" style="border-collapse: collapse" border="1" bordercolor="#BFC4CA">
											<tr>
												<th colspan="2" height="25" bgcolor="#EEF2FB"><?php echo $title?></th>
											</tr>
											<tr>
												<td width="18%" height="25" align="right"><?php echo lang('news_title');?></td>
												<td width="83%" height="25" align="left"><input name="title" type="text" id="title" value="<?php echo $news['title'];?>" size="60"
	maxlength="50" />
													<span class="tip">*<?php printf(lang('com_tip_word_limit'), 50);?></span></td>
											</tr>
											<tr>
												<td width="18%" height="25" align="right"><?php echo lang('news_author');?></td>
												<td width="83%" height="25" align="left"><input name="author" type="text" id="author" value="<?php echo $news['author'];?>" size="30"
	maxlength="20" />
													<span class="tip">*<?php printf(lang('com_tip_word_limit'), 20);?></span></td>
											</tr>
											<tr>
												<td width="18%" align="right" height="25"><?php echo lang('com_keyword');?></td>
												<td width="83%" height="25" align="left"><input name="keyword" type="text" id="keyword" value="<?php echo $news['keyword'];?>" size="50"
	maxlength="30" />
													&nbsp;<span class="tip"><?php printf(lang('com_tip_keyword_limit'), 30);?></span></td>
											</tr>
											<tr>
												<td width="18%" align="right" height="25"><?php echo lang('com_column_name');?></td>
												<td width="83%" height="25" align="left"><select name="classid" id="classid">
														<option value=""><?php echo lang('com_column_choise');?></option>
														<?php echo format_column_as_select($class);?>
													</select>
													<span class="tip">*<?php echo lang('com_tip_select_sub_column');?></span></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('news_source');?></td>
												<td height="25" align="left"><input name="source" type="text" id="source" value="<?php echo $news['source'];?>" size="30"
	maxlength="20" />
													<span class="tip">*<?php printf(lang('com_tip_word_limit'), 20);?></span></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('com_releasename');?></td>
												<td height="25" align="left"><input readonly="readonly" name="releasename" type="text" id="releasename" value="<?php echo $loginname;?>" size="30"
	maxlength="20" />
													<span class="tip">*<?php printf(lang('com_tip_word_limit'), 20);?></span></td>
											</tr>
											<tr>
												<td align="right" height="25"><?php echo lang('news_picture');?></td>
												<td height="25" align="left"><input name="picturepath" type="text" id="picturepath" value="<?php echo $news['picturepath'];?>" size="50"
	maxlength="200" />
													<input name="b_upload" type="button" class="button" id="b_upload"
	value="<?php echo lang('com_button_upload');?>" />
													<span class="tip"><?php echo lang('com_upload_image_tip');?></span></td>
											</tr>
											<tr>
												<td width="18%" align="right" height="25"><?php echo lang('news_content');?></td>
												<td width="83%" height="25" align="left"><textarea name="content" cols="100" rows="20" id="content"><?php echo $news['content'];?></textarea></td>
											</tr>
											<tr>
												<td align="right"><?php echo lang('com_remark');?></td>
												<td align="left"><input name="remark" type="text" id="remark" value="<?php echo $news['remark'];?>" size="50"	maxlength="100" />
													<span class="tip"><?php printf(lang('com_tip_admin_visible'), 20);?></span></td>
											</tr>
											<tr>
												<td colspan="2" height="25"><input id="news_id" name="news_id" type="hidden" value="<?php echo $news['id'];?>" />
													<input id="origin_classid" name="origin_classid" type="hidden" value="<?php echo $news['classid'];?>" />
													<input name="s_news_edit" type="submit" class="button" id="s_news_edit" value="<?php echo lang('com_button_edit');?>" />
													<input name="reset" type="reset" class="button" id="reset" value="<?php echo lang('com_button_reset');?>" /></td>
											</tr>
										</table>
									</form></td>
							</tr>
						</table></td>
				</tr>
			</table></td>
		<td class="table_right_side"></td>
	</tr>
	<tr>
		<td valign="middle" class="table_bottom_left">&nbsp;</td>
		<td height="17" valign="top" class="table_bottom_middle">&nbsp;</td>
		<td class="table_bottom_right">&nbsp;</td>
	</tr>
</table>
</body>
</html>
